package com.question.dao;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.question.entity.Options;
@Repository
public interface OptionsRepository extends PagingAndSortingRepository<Options, Long>, JpaSpecificationExecutor<Options> {
	@Query(value="from Options o where o.num = ?1")
	public Options findByCode(String num);

}
